package org.itboys.mobile.entity.mongo;


import org.itboys.mongodb.entity.BaseMongoEntity;
import org.mongodb.morphia.annotations.Entity;

/**
 * 作者：jiangxiong
 * 日期：2016年9月22日
 * 联系方式 ：empty90911@126.com
 * 描述：圣代_购物车_实体
 */
@Entity(value = "SundayCart", noClassnameStored = true)
public class SundayCart extends BaseMongoEntity {

	private Long memberId;//会员ID
	private Long productId;//产品ID
	private Integer num;//数量
	private Integer cartType;//1，购物车，2，立即购买
	//2018年1月16日
	private Integer promotionType;//1开团，2拼团

	public SundayCart() {
	}

	public SundayCart(Long memberId, Long productId, Integer num, Integer cartType) {
		this.memberId = memberId;
		this.productId = productId;
		this.num = num;
		this.cartType = cartType;
	}

	public Long getMemberId() {
		return memberId;
	}

	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}

	public Long getProductId() {
		return productId;
	}

	public void setProductId(Long productId) {
		this.productId = productId;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}



	public Integer getCartType() {
		return cartType;
	}

	public void setCartType(Integer cartType) {
		this.cartType = cartType;
	}

	public Integer getPromotionType() {
		return promotionType;
	}

	public void setPromotionType(Integer promotionType) {
		this.promotionType = promotionType;
	}
}
